import { http } from '@/utils/http'
import type {assetsSuccess,RewardPoolSuccess,MsgSuccess} from '@/types/home.js'
// 个人资产
export const postHomeAPI = () => {
  return http<assetsSuccess>({
    method: 'GET',
    url: '/apiDev/index/assets',
  })
}
export const getHomeAPI2 = () => {
	return http<RewardPoolSuccess>({
		method: 'GET',
		url: '/apiDev/index/RewardPool'
	})
}

// 用户相关信息
export const userInfo =()=>{
	return http({
		method:"GET",
		url:"/api/server/user/userInfo"
	})
}





// interface type {
// 	type: string
// }
// 消息中心的请求数据
export const getHomeMsgApi =(data: number|undefined)=>{
	return http<MsgSuccess>({
		method: 'GET',
		url: '/api/server/userMessage/getUserMsgLsitByType?type='+data,
	})
}

// 锦鲤合伙人
export const koiPartner =()=>{
	return http({
		method: 'GET',
		url: '/api/server/nodeMission/getNodeMissionList',
	})
}